public class Main {
    public static void main(String[] args) {
        
        AbstractProductWheels myWheels;
        AbstractProductRoof myRoof;
        AbstractProductSeat mySeat;
        AbstractProductCarAirConditioning myCarAirConditioning;

        IAbstractFactoryCarPart factory = new FactoryBmw();
        myWheels = factory.createProductWheels();
        myRoof = factory.createProductRoof();
        mySeat = factory.createProductSeat();
        myCarAirConditioning=factory.createProductCarConditioning();

        System.out.println(myWheels.ShowInfo());
        System.out.println(myRoof.ShowInfo());
        System.out.println(mySeat.ShowInfo());
        System.out.println(myCarAirConditioning.ShowInfo());

        factory =new FactoryRollsRoyce();
        myWheels = factory.createProductWheels();
        myRoof = factory.createProductRoof();
        mySeat = factory.createProductSeat();
        myCarAirConditioning=factory.createProductCarConditioning();

        System.out.println(myWheels.ShowInfo());
        System.out.println(myRoof.ShowInfo());
        System.out.println(mySeat.ShowInfo());
        System.out.println(myCarAirConditioning.ShowInfo());


    }
}